home *** CD-ROM | disk | FTP | other *** search
- 38 <HTML>
- \n<HEAD>
- \n
- \n
- 39 <TITLE>PhotoImpact Java Rollover Assistant----%s</TITLE>
- \n
- \n
- 40 </HEAD>
- \n
- \n<Script Language="JavaScript">
- \n<!--Ulead(R) RollOverButton(TM) 1.0 Generated JavaScript. Please do not edit.
- \nnMaxItem = 4;
- \nNameIndex = 0;
- \nDefaultState = 1;
- \n
- \n
- 41 MouseOverState = 2;
- \nMouseDownState = 3;
- \nimgCounter = 0;
- \n
- \nImageList = new Array();
- \n
- \n
- 42 bIsSupportOK = (
- \n ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
- \n ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
- \n);
- \n
- \n
- 43 function AddImageToImageList(name, Default, MouseOver, MouseDown)
- \n{
- \n ImageList[imgCounter] = new Array(nMaxItem);
- \n ImageList[imgCounter][NameIndex] = name;
- \n ImageList[imgCounter][DefaultState] = new Image();
- \n
- 44 ImageList[imgCounter][DefaultState].src = Default;
- \n if (MouseOver != "") {
- \n ImageList[imgCounter][MouseOverState] = new Image();
- \n ImageList[imgCounter][MouseOverState].src = MouseOver;
- \n }
- \n
- 45 if (MouseDown != "") {
- \n ImageList[imgCounter][MouseDownState] = new Image();
- \n ImageList[imgCounter][MouseDownState].src = MouseDown;
- \n }
- \n
- \n imgCounter++;
- \n}
- \n
- \n
- 46 function ReplaceImage(name, state)
- \n{
- \n for (i = 0; i < imgCounter; i++) {
- \n if (document.images[ImageList[i][NameIndex]] != null) {
- \n
- 47 if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
- \n document.images[name].src = ImageList[i][state].src;
- \n }
- \n }
- \n}
- \n
- \n// ------------
- \n
- 48 // . First:
- \n// . You can copy the "AddImageToImageList(...)" script and
- \n// . paste it into your HTML file to compile and
- \n// . define your rollover button.
- \n
- 49 // . ------------
- \n
- \n
- 50 AddImageToImageList("%s", "%s", "%s", "%s");
- \n
- \n
- 51 // ------------>
- \n</Script>
- \n
- \n<BODY>
- \n<! ------------
- \n// . Second:
- \n// . You can copy the "<a href=......></a>" script and
- \n
- 52 // . paste it into your HTML file to compile and
- \n// . define your rollover button.
- \n ------------>
- \n
- \n
- 53 <A HREF="%s"
- \n ONMOUSEDOWN="if (bIsSupportOK) ReplaceImage('%s', MouseDownState);"
- \n ONMOUSEUP="if (bIsSupportOK) ReplaceImage('%s', MouseOverState);"
- \n ONMOUSEOUT="if (bIsSupportOK) ReplaceImage('%s',DefaultState);"
- \n
- 54 ONMOUSEOVER="if (bIsSupportOK) ReplaceImage('%s', MouseOverState);"
- \n TARGET="%s">
- \n <IMG NAME="%s" SRC="%s" ALT="%s" WIDTH="%d" HEIGHT="%d" BORDER="0"></A>
- \n
- \n<! ------------
- \n
- 55 // . Third:
- \n// . It is important to note that after copying all the rollover button
- \n// . JavaScript codes from the PhotoImpact Java Rollover Assistant,
- \n
- 56 // . all the image files needed for your rollover buttons
- \n// . should be placed within your target folder as well.
- \n ------------>
- \n
- \n</BODY>
- \n</HTML>
- \n
- 100 wJavaCom
-